package com.pgytesting.secondhandcar.controller.mcpcar;

import com.pgytesting.secondhandcar.model.McpCarDealerInformation;
import com.pgytesting.secondhandcar.model.McpUserOtherInformation;
import com.pgytesting.secondhandcar.service.McpCarDealerInformationService;
import com.pgytesting.secondhandcar.service.McpUserOtherInformationService;
import com.pgytesting.secondhandcar.vo.ResponseMessage;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author : frosty0804@gmail.com
 * @version : v1.0
 * @projectName : secondhandcar
 * @className : UpdateMcpCar
 * @description : TODO(一句话描述该类的功能)
 * @date : 2019/8/16 16:00
 */
@RestController
@RequestMapping("/sales/update")
public class UpdateMcpCarController {


    @Resource
    McpCarDealerInformationService mcpCarService;

    @Resource
    McpUserOtherInformationService otherInformationService;

    /**
     * 修改绑定手机号，修改登录账号
     *
     * @param mcpCar
     * @return
     */
    @RequestMapping(value = "/updatePhone", method = RequestMethod.POST)
    public ResponseMessage updatePhone(@RequestBody McpCarDealerInformation mcpCar) {
        return mcpCarService.updatePhone(mcpCar);
    }


}
